-- GENERATED SPELL FOR [Enraged Foulweald] --


function spell0_12921(pUnit, Event) --@Destroy Karang\'s Banner,n/a--
pUnit:FullCastSpellOnTarget(20786,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12921', 10000, 1)
end

function Sorts_12921(pUnit, Event)
local choix_sorts_12921 = math.random(0, 0)
if choix_sorts_12921 == 0 then
pUnit:RegisterEvent('spell0_12921', 1, 1)
end
end

function mob12921_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12921', math.random(1500, 3000), 1)
end

function mob12921_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12921_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12921_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12921, 1, 'mob12921_Action')
RegisterUnitEvent(12921, 2, 'mob12921_Leave')
RegisterUnitEvent(12921, 3, 'mob12921_Kill')
RegisterUnitEvent(12921, 4, 'mob12921_Die')
